<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ include file="../common/tag.jsp" %>
<!DOCTYPE html>
<html>
	<head>
		<title>列表详情页</title>
		<%@ include file="../common/head.jsp" %>
	</head>
	<body>
		<div class="container">
			<div class="panel panel-info">
				<div class="panel-heading text-center">
					<h2>秒杀列表</h2>
				</div>
				<div class="panel-body">
					<table class="table table-hover">
						<thead>
							<tr>
								<th>商品</th>
								<th>剩余库存</th>
								<th>开始时间</th>
								<th>结束时间</th>
							</tr>
						</thead>
						<tbody>
							<c:forEach var="sk" items="${list}">
								<tr>
									<td>${ sk.name }</td>
									<td>${ sk.number }</td>
									<td> <fmt:formatDate value="${ sk.startTime }" pattern="yyyy-MM-dd HH:mm:ss"/> </td>
									<td> <fmt:formatDate value="${ sk.endTime }" pattern="yyyy-MM-dd HH:mm:ss"/> </td>
									<td><a class="btn btn-info" href="/seckill/${sk.seckillId}/detail">点击进入秒杀</a></td>
								</tr>
							</c:forEach>
						</tbody>
					</table>
				</div>
			</div>
		</div>
	</body>
	<%@ include file="../common/tail.jsp" %>
</html>